﻿using System;
using System.ComponentModel;
using System.Linq;
using Prism.Mvvm;

namespace Wpf.Models
{
    public class ScriptContent : BindableBase
    {
        private string _data;
        public string Data
        {
            get => _data;
            set
            {
                _data = value;
                RaisePropertyChanged(nameof(Data));
            }
        }

        private string _javaScriptCode;
        public string JavaScriptCode
        {
            get => _javaScriptCode;
            set
            {
                _javaScriptCode = value;
                RaisePropertyChanged(nameof(JavaScriptCode));
            }
        }

        private string _functionName;
        private int scriptType;

        public string FunctionName
        {
            get => _functionName;
            set
            {
                _functionName = value;
                RaisePropertyChanged(nameof(FunctionName));
            }
        }

       

        /// <summary>
        /// 0:javascript 1:python
        /// </summary>
        public int ScriptType
        {
            get => scriptType;
            set
            {
                scriptType = value;
                RaisePropertyChanged(nameof(ScriptType));
            }
        }

        
    }
}